package com.zjhome.itoken.common.web.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.zjhome.itoken.common.web.interceptor.ConstantsInterceptor;

@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		// 添加拦截器配置
		registry.addInterceptor(new ConstantsInterceptor()).addPathPatterns("/**");
	}
}
